<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let a = 10 ; 
        console.log(a);
        //16进制
        var b = 0x11
        console.log(b)
        //8进制a
        var c  = 0o11;
        console.log(c);
        //转换成二进制
        console.log(a.toString(2))
        console.log(a.toString(8))
        console.log(a.toString(16))
        console.log(a.toString(6))
    </script>
</body>
</html>